<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico"/>
    <title>05-JavaScript 表达式演示</title>
</head>
<body>
<div id="app">
    <h1>{{ message }}</h1>
    <h1>{{ number+1 }}</h1>
    <h1>{{ ok ? 'YES' : 'NO' }}</h1>
    <h1>{{ message.split('').reverse().join('') }}</h1>
    <h1><div v-bind:id="'list-' + id">ID绑定测试</div></h1>
</div>
<!--<script src="https://unpkg.com/vue@next"></script>-->
<script src="../js/vue.global.js" />
<script>Vue.config.productionTip = false</script>
<script>
    const app={
        data(){
            return {
                message:"hello word!",
                number:0,
                ok:false,
                id:"test",
            }
        }
    }
    Vue.createApp(app).mount('#app');
</script>
</body>
</html>